package org.laobai.shop.goods.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.laobai.shop.goods.entity.Spec;
import org.laobai.shop.goods.entity.SpecOption;

public interface SpecMapper {

	List<Spec> specList(Spec spec);

	void saveSpec(Spec spec);

	void saveOption(SpecOption item);

	List<Spec> list();

	List<SpecOption> getOptionsBySpecId(Integer specId);

	List<Spec> getBySkuId(@Param("skuIds") List<Integer> skuIds);

}
